﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Driver;
using A2DFramework.BusinessExceptionService.Factories;

namespace A2DFramework.BusinessExceptionService.DataLoggerProviders
{
    public class MongoDBDataLogger:IDataLogger
    {
        public void Log(BusinessExceptionWrapper exception)
        {
            MongoCollection<BusinessExceptionWrapper> collection=MongoDBFactory.GetMongoDBCollection();
            collection.Insert(exception);
        }
    }
}
